import { defineStore } from 'pinia'
import store from 'store'
import {LayoutModel} from "/@/store/modules/type/LayoutModel";

export const useLayoutStore = defineStore({
    id: 'layout',
    state: () => {
           let layout =  store.get('layout') == null? {
               layout: 'around',
               textColor: '#a8abb2',
               themeColor: '#1D4ED8'
           } as LayoutModel : store.get('layout')
        return {
            layout: layout.layout || 'around',
            textColor: layout.textColor || '#a8abb2',
            themeColor: layout.themeColor || '#1D4ED8'

        }
    },
    getters: {

    },
    actions: {


    }
})

